PESetSelectionFormula

Use PESetSelectionFormula to change the selection formula to the formula string that you supply as a parameter. This function can be used by itself to replace a known record selection formula and also as one of a series of functions: PEGetSelectionFormula; PEGetHandleString; or PESetSelectionFormula). The series can be used in a Custom-Print link to identify and then change an existing record selection formula at print time in response to a user selection. When you give the user the ability to change the record selection formula at print time, your link must include code to replace formulaString with a user-generated value.

C Syntax
BOOL CRPE_API PESetSelectionFormula (
        short printJob,
        const char FAR *formulaString );
Parameters

printJob

Specifies the print job for which you want to set a new selection formula string.

formulaString

Specifies a pointer to the null-terminated string that you want to assign to the selection formula.

Returns
Remarks
VB Syntax

VB Sample Code for modifying selection formulas and group selection formulas

Declare Function PESetSelectionFormula Lib "crpe32.dll" (ByVal printJob 
As Integer, ByVal FormulaString As String) As Integer
Delphi Syntax
function PESetSelectionFormula (
    printJob: Word;
    formulaString: PChar
    ): Bool stdcall;
dBASE for Windows Syntax

EXTERN CLOGICAL PESetSelectionFormula (CWORD, CSTRING) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com